package com.cloudbroker.bcs.platform.dav.middle.service;

import java.util.Date;
import java.util.List;

import com.cloudbroker.bcs.common.service.base.ServiceBase;
import com.cloudbroker.bcs.platform.dav.middle.entity.BrokerVote;
import com.cloudbroker.bcs.platform.dav.middle.entityexample.BrokerVoteQueryCondition;
import com.cloudbroker.bcs.platform.dav.middle.entityview.VoteRecordListView;

/**
 * Created by Thinkpad on 2016/10/26.
 */
public interface BrokerVoteService extends ServiceBase<BrokerVote, Long> {
    public BrokerVote findByName(String broker_name);

    public List<BrokerVote> findAndSort(String order_by);

    public void addVoteNum(Long broker_id ,Integer tenant_id,String vote_type,Date create_time);

    public BrokerVote getVoteByBrokerId(Long broker_id,String vote_type);

    public List<VoteRecordListView> getVoteRecordList(BrokerVoteQueryCondition condition);

    BrokerVote findByBorkerId(Integer tenant_id, Long broker_id,String vote_type);

    Date getLastVoteDate(Integer tenantId,String vote_type);
}
